#ifndef MASKMENU_H
#define MASKMENU_H

#include <QtGui>
#include <QGLViewer/qglviewer.h>
using namespace qglviewer;

class Viewer;

class MaskMenu
{
 public :
  MaskMenu();
  ~MaskMenu();

  void activate();
  void deactivate();
  bool active() { return m_active; }

  void reset();

  int tag() { return m_tag; }
  int thickness() { return m_thickness; }

  void setViewer(Viewer *viewer) { m_Viewer = viewer; }
  void drawMenu();

  bool menuActive();
  bool processKey(QKeyEvent*);
  
  bool checkTag(int, int);
  bool checkThickness(int, int);
  
 private :
  Viewer *m_Viewer;

  bool m_active;

  int m_tag;
  int m_thickness;

  bool m_tagActive;
  bool m_thicknessActive;
  float m_number;
  QString m_numberText;

  QRect m_tagRect;
  QRect m_thicknessRect;
};

#endif
